The code in this folder is different then the rest of the program. This is because the repository BrowserDude:

https://github.com/jacobrosenthal/browserdude

was used as the starting point. It had a working implementation of the stk500 protocol, used to flash firmware to the Arduino board. To be used sucessfully this specific repository needs to be initialised with the node dependences. So in this folder, use a command line utility and "compile" the project to generate the "nodes_modules" folder and the "firmware_deps.bundle.js" file. Do not modify these by hand!

1) To "compile" you need:
https://nodejs.org/download/

2) Using cmd, do to this directory (..../js/firmware_flasher/)

3) Then type "npm install --save gulp-install" to install gulp

4) Type "npm install -g gulp" to make it global

5) Then type "npm i" as instructed in the browserdude repo.

6) Comment all the console.log in "node_modules\stk500\index.js" between lines 130 and 303 inclusive.

7) type "gulp"

8) delete the node_modules folder before commit